<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="#">首页</a> </li>
    <li class="active">编辑账户</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> <small> <i class="icon-double-angle-right"></i> 编辑账户 </small> </h1>
  </div>
  <!-- /.page-header -->
  
  <div class="row">
    <div class="col-xs-12"> 
      <!-- PAGE CONTENT BEGINS -->
      <div class="row-fluid">
        <div class="span12">
          <div class="widget-box">
            <div class="widget-header widget-header-blue widget-header-flat">
              <h4 class="lighter">编辑账户信息</h4>
            </div>
            <div class="widget-body">
              <div class="widget-main">
                <div class="step-content row-fluid position-relative" id="step-container">
                  <div class="step-pane active" id="step1">
                  
                    <form class="form-horizontal" action="{:U('Admin/Member/cash_list_edit')}" id="validation-form" method="post" enctype="multipart/form-data">
                      <input type="hidden" name="id" value="{$info.id}" >
                        <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="name">名称:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="name" name="name" value="{$info.name}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
					   <div class="hr hr-dotted"></div>
                       
                    
                      
                      <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" >账户:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="code" name="code" oninput="inputAccount()"  value="{$info.code}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
					  <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" >二维码:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="file" id="qr_code" name="qr_code" value="{$info.qr_code}" class="col-xs-12 col-sm-5" />
							<span>非必填</span>
                          </div>
                        </div>
                      </div>
					   <div class="hr hr-dotted"></div>
                       <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-3 no-padding-right" >排序值:</label>
                        <div class="col-xs-12 col-sm-9">
                          <div class="clearfix">
                            <input type="text" id="sort" name="sort" value="{$info.sort}" class="col-xs-12 col-sm-5" />
                          </div>
                        </div>
                      </div>
                      
                     
                      
                      <div class="hr hr-dotted"></div>
                      
                       
                      <div class="row-fluid wizard-actions">
                        <input class="btn btn-primary radius" type="submit" id="submitBtn" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                      </div>
                    </form>
                  </div>
                </div>
                
              </div>
              <!-- /widget-main --> 
            </div>
            <!-- /widget-body --> 
          </div>
        </div>
      </div>
      
      <!-- PAGE CONTENT ENDS --> 
    </div>
    <!-- /.col --> 
  </div>
  <!-- /.row --> 
</div>


		<script src="/Public/Admin/js/jquery-2.0.3.min.js"></script>


 <script>  
    var num = 0;  
    function inputAccount(){
        
      var str = $('#code').val();  
        
      var elem = document.getElementById("code");  
        
      console.log(elem);  
        
      if(str.length > num){  
          var c = str.replace(/\s/g,  "");   
            
          if(str != "" && c.length > 4 && c.length % 4 == 1){  
            $('#code').val(str.substring(0, str.length - 1)+ " " + str.substring(str.length - 1, str.length));  
                
          }  
      }  
        
 
        
  }  
  
    </script>
</body>
</html>